#!/bin/bash
while [ true ]; do
        prepare=`ps -ef | grep prepare | wc -l`;
        maild=`ps -ef | grep maildrop | wc -l`;
        defun=`ps -ef | grep maildrop | grep defunct | wc -l`;
        echo "Prepare:$prepare Maildrop: <runing>:$maild <defunct>:$defun";
        sleep 2;
done;
